package org.sao.security.core.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

import lombok.Getter;
import lombok.Setter;


@ConfigurationProperties(prefix="zy.security")
public class SecurityProperties {
	
	BrowserProperties browser =new BrowserProperties();
	
	ValidateCodeProperties code = new ValidateCodeProperties();
	
	SocialProperties social =new SocialProperties();
	
	OAuthProperties oauth2 =new OAuthProperties();
	
	
	/**
	 * 异步线程设置
	 */
	
	@Getter
	private final Async async = new Async();
	
	@Getter
	@Setter
	public static class Async {
		private int corePoolSize = SecurityConstants.Async.corePoolSize;
		private int maxPoolSize = SecurityConstants.Async.maxPoolSize;
		private int queueCapacity = SecurityConstants.Async.queueCapacity;
		private int keepAliveSeconds = SecurityConstants.Async.keepAliveSeconds;		
	}
	

	public ValidateCodeProperties getCode() {
		return code;
	}

	public void setCode(ValidateCodeProperties code) {
		this.code = code;
	}

	public BrowserProperties getBrowser() {
		return browser;
	}

	public void setBrowser(BrowserProperties browser) {
		this.browser = browser;
	}

	public SocialProperties getSocial() {
		return social;
	}

	public void setSocial(SocialProperties social) {
		this.social = social;
	}

	public OAuthProperties getOauth2() {
		return oauth2;
	}

	public void setOauth2(OAuthProperties oauth2) {
		this.oauth2 = oauth2;
	}
	
	
	

}
